import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { UserModule } from './server/user/user.module';
import { SequelizeModule } from '@nestjs/sequelize';
import { PageServiceModule } from './server/page-service/page-service.module';

@Module({
  imports: [
    UserModule,
    SequelizeModule.forRoot({
      dialect: 'mysql',
      host: '10.125.11.97',
      port: 2883,
      username: 'clcroot@clcplatformtest#obce4_1',
      password: 'ClcOb#19#',
      database: 'clcplatformtest',
      models: [],
    }),
    PageServiceModule,
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
